/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.style;

import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zkex.zul.Colorbox;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Groupbox;
import org.zkoss.zul.Listbox;
import org.zkoss.zul.Style;
import org.zkoss.zul.Window;

/**
 *
 * @author SSANCHEZ
 */
public class Venatana extends GenericForwardComposer{
    Window win;
    Colorbox cventana,ctexto;
    Datebox fecha;
    StyleWindow styleWindow=new StyleWindow();
    Groupbox grb_usuarios;
    Listbox lsb_usuarios;
    
    public void backgroud(){
        win.setStyle("background: "+cventana.getValue()+"; color:"+ctexto.getValue());
        grb_usuarios.setStyle("background: "+cventana.getValue()+"; color:"+ctexto.getValue());
        lsb_usuarios.setStyle("background: "+cventana.getValue()+"; color:"+ctexto.getValue());
    }
    
    public void onChange$cventana(){
//        String clase=styleWindow.Sclass(cventana.getValue(), ctexto.getValue());
        backgroud();
    }
    
    public void onChange$ctexto(){
//        String clase=styleWindow.Sclass(cventana.getValue(), ctexto.getValue());
        backgroud();
    }
    
}
